package org.ams.role.dao;

import java.util.List;
import java.util.Map;

import org.ams.role.entity.Role;
import org.ams.role.entity.RoleAccount;
import org.ams.role.entity.RoleMenu;
import org.springframework.stereotype.Repository;

@Repository
public interface RoleDao {

	List<Role> queryRoleList(Map<String, Object> params);

	List<RoleAccount> queryRoleAccountListByMap(Map<String, Object> params);

	Integer saveRoleAccount(RoleAccount ra);

	Integer deleteRolesByIds(Map<String, Object> params);

	Integer deleteRoleAccountByAccountIds(Map<String, Object> params);
	
	Integer deleteRoleAccountByRoleIds(Map<String, Object> params);

	List<RoleMenu> queryRoleMenuListByMap(Map<String, Object> params);

	Integer deleteRoleMenuByRoleIds(Map<String, Object> params);

	Integer saveRoleMenu(RoleMenu rm);

	Integer updateRole(Role role);

	Integer saveRole(Role role);

}
